﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(ShapeMetadata))]//使用ShapeMetadata对Shape进行数据验证
    public partial class Shape : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        #endregion

    }
    public class ShapeMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "RowGuid", Order = 1)]
			public object RowGuid { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "墓形名称", Order = 2)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object Name { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "安葬方式", Order = 3)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object BuryType { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "穴形", Order = 4)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object ShapeType { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "主碑属性", Order = 5)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object ZhuBeiShuXing { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "盖板属性", Order = 6)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object GaiBanShuXing { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "基座属性", Order = 7)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object JiZuoShuXing { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "墓穴外形长度", Order = 8)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object MuXueWaiXingChangDu { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "骨穴净空长度", Order = 9)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object GuXueJingKongChangDu { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "墓穴外形宽度", Order = 10)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object MuXueWaiXingKuanDu { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "骨穴净空宽度", Order = 11)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object GuXueJingKongKuanDu { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "骨穴净空高度", Order = 12)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object GuXueJingKongGaoDu { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "墓穴外形高度", Order = 13)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object MuXueWaiXingGaoDu { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "外形占地面积", Order = 14)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object ZhanDiMianJi { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "骨穴净空面积", Order = 15)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object GuXueJingKOngMianJi { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "墓型照片", Order = 16)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object Photo { get; set; }


    }


}

